package com.loan;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class LoanApplication {

	public static void main(String[] args) {
		ApplicationContext ctx = SpringApplication.run(LoanApplication.class, args);
		String[] activeProfiles = ctx.getEnvironment().getActiveProfiles();
		for (String profile : activeProfiles) {
			System.out.println("Spring Boot 使用profile为:"+profile);
		}
	}
}
